-- GENERATED SPELL FOR [Murloc Tidecaller] --


function spell0_545(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(122,pUnit)
pUnit:RegisterEvent('Sorts_545', 8000, 1)
end

function spell1_545(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(913,pUnit)
pUnit:RegisterEvent('Sorts_545', 3000, 1)
end

function Sorts_545(pUnit, Event)
local choix_sorts_545 = math.random(0, 1)
if choix_sorts_545 == 0 then
pUnit:RegisterEvent('spell0_545', 1, 1)
end
if choix_sorts_545 == 1 then
pUnit:RegisterEvent('spell1_545', 1, 1)
end
end

function mob545_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_545', math.random(1500, 3000), 1)
end

function mob545_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob545_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob545_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(545, 1, 'mob545_Action')
RegisterUnitEvent(545, 2, 'mob545_Leave')
RegisterUnitEvent(545, 3, 'mob545_Kill')
RegisterUnitEvent(545, 4, 'mob545_Die')
